import request from '@/utils/request'

/**
 * 权限菜单
 */
export function menuListApi(params) {
  return request({
    url: '/server/purview/menuList',
    method: 'get',
    data: params
  })
}
/**
 * 代理商列表- 不包含总区域代理
 */
export function agentList(params) {
  return request({
    url: '/server/agent/select',
    method: 'get',
    data: params
  })
}
/**
 * 代理商-子区域
 */
export function agentSubList(params) {
  return request({
    url: '/server/agent/getAgent',
    method: 'get',
    data: params
  })
}
/**
 * 通知数量统计
 */
export function agentUnreadNum(params) {
  return request({
    url: '/server/notice/agentUnreadNum',
    method: 'get',
    data: params
  })
}
/**
 * 修改密码
 */
export function password(params) {
  return request({
    url: '/server/user/password',
    method: 'get',
    data: params
  })
}
/**
 * 选参与活动的商家 公共组件内接口
 */
export function selectBusiness(params) {
  return request({
    url: '/server/activity/selectBusiness',
    method: 'get',
    data: params
  })
}
/**
 * 选商品库里的图片 公共组件内接口
 */
export function recommendedPicture(params) {
  return request({
    url: '/server/business/recommendedPicture',
    method: 'get',
    data: params
  })
}
/**
 * 代理商列表-不包含子区域
 */
export function selectAgent(params) {
  return request({
    url: '/server/agent/selectAgent',
    method: 'get',
    data: params
  })
}
/**
 * 代理商列表-不包含子区域
 */
export function selectAllAgent(params) {
  return request({
    url: '/server/agent/selectAllAgent',
    method: 'get',
    data: params
  })
}
